
<template>
    <div class="spanControl-list" style="width: 100%;margin-left: 0!important;">
        <el-card class="box-card card-head" style="margin: 0px; width: 100%; min-height: 99%">
            <div slot="header" class="clearfix">
                <span>查看地址</span>
            </div>

            <div class="text item">
                <el-form label-position="left" inline class="display-form">
                        <!--<el-form-item label="标识">-->
                            <!--<span>{{ address.EId }}</span>-->
                        <!--</el-form-item>-->
                        <el-form-item label="名称">
                            <span>{{ address.name }}</span>
                        </el-form-item>
                        <el-form-item label="联系人电话">
                            <span>{{ address.addressContact }}</span>
                        </el-form-item>
                        <el-form-item label="联系人姓名">
                            <span>{{ address.addressName }}</span>
                        </el-form-item>
                        <el-form-item label="主要地址">
                            <span>{{ address.addressMain }}</span>
                        </el-form-item>
                        <el-form-item label="详细地址">
                            <span>{{ address.addressDetailed }}</span>
                        </el-form-item>
                        <el-form-item label="是否为默认地址">
                            <span>{{ address.addressDefault }}</span>
                        </el-form-item>
                        <el-form-item label="用户">
                            <span>{{ address.employeeName }}</span>
                        </el-form-item>
                        <el-form-item label="用户">
                            <span>{{ address.employeeId }}</span>
                        </el-form-item>
                        <el-form-item label="备注">
                            <span>{{ address.remark }}</span>
                        </el-form-item>
                        <el-form-item label="创建人">
                            <span>{{ address.createId }}</span>
                        </el-form-item>
                        <el-form-item label="创建时间">
                            <span>{{ address.createDatetime }}</span>
                        </el-form-item>
                        <el-form-item label="修改人">
                            <span>{{ address.updateId }}</span>
                        </el-form-item>
                        <el-form-item label="修改时间">
                            <span>{{ address.updateDatetime }}</span>
                        </el-form-item>
                </el-form>
            </div>
        </el-card>
    </div>
</template>

<script>
import {AddressService} from './AddressService';

export default {
    components: {
    },
    data() {
        return {
            address:{},
        }
    },
    methods: {
        findAddressForView(addressId)//查找地址
        {
            AddressService.findAddressForView(addressId).then((resp) => {
                this.address = resp.data;
        }).catch((error) => {
            this.$message({
            type: 'error',
            message: '查询地址出错'
        })
        })
        },
    },
    created() {
        const addressId = this.$route.params.addressId;
        this.findAddressForView(addressId);
    },
}

</script>
<style scoped lang="scss">

</style>
